#pragma once
#include "Product.h"

class CAccessory :public CProduct
{
public:
	CAccessory();
	virtual ~CAccessory();
	void setType(const int& nType);
	int getType() const;

	void setCount(const int& nCount);
	int getCount() const;

public:
	virtual void copy(const CProduct* pProdcut);
	virtual CProduct* clone();

	virtual void bought();
	virtual void warranty();
	virtual bool pushToDB();
	virtual bool updateDB();
	virtual bool removeOutDB();
protected:
	int  m_nType;
	int	 m_nCount;
	
};